/***
 *** Core
 ***/

html, body {
    font-family:Arial, Verdana, Helvetica, sans-serif;
    margin:0;
    padding:0;
    background-color:[[setting:pagebackground]];
    font-size:[[setting:fontsizereference]];
}

a:link {text-decoration:none;color:black;}
a:visited {text-decoration:none;color:black;}
a:hover {text-decoration:underline;color:black;}

a.autolink {text-decoration:underline;}

h1 {font-size:140%;font-weight:bold;}
h2 {font-size:130%;}
h3 {font-size:120%;}
h4 {font-weight:bold;}

h1.headerheading {margin:14px 11px 8px 11px;float:left;font-size:200%;}
h2, h3, h4 {padding:0;}

/* page-header */
#page-header{
    margin: 0;
    overflow: hidden;
    padding: 0;
    width: 100%;
}

/* headerlogo */
#headerlogo {
    float: left;
    height: auto;
    margin: 0;
    padding: 0;
    width: auto;
    line-height: 0;
}

.dir-rtl #headerlogo {
    float: right;
}

/* headermenu */
.headermenu {
    font-size: 90%;
    line-height: 1.7em;
    position: absolute;
    top: 0;
}

.dir-ltr .headermenu {
     float: right;
     margin: 1.7em [[calculated:headermenumargin]] 0 0;
     right: 0;
     text-align: right;
 }

.dir-rtl .headermenu {
    float: left;
    margin: 1.7em 0 0 [[calculated:headermenumargin]];
    left: 0;
    text-align: left;
}

.langmenu {
    margin-right: 0.1em;
}

#dock {background-color:[[setting:blockcontentbgc]];border-right:1px dashed #000;}
#dock .dockeditem_container {margin-top: 10px;}
#dock #dockeditempanel .dockeditempanel_hd {background-image:url([[pix:theme|trend/__setting_trendcolor__/gradient_h]]);background-color:[[setting:blockheaderbackground]];background-repeat:repeat-x;text-align:left;height:1.8em;}
#dock #dockeditempanel .dockeditempanel_hd h2 {display:block;padding-left:0.3em;margin-top:0;text-align:left;}
#dock #dockeditempanel .dockeditempanel_hd .commands {position:absolute;right:0.3em;top:0.25em;}

/* navbar */
.navbar {width:auto;background-image:url([[pix:theme|trend/__setting_trendcolor__/bg_bread]]);background-repeat:repeat-x;line-height:29px;} /* 30 pixel is the height if bg_bread */
.navbar li span.arrow {color:black;font-size:50%;}
.navbar li span {color:white;}
.navbar li a:link, .navbar li a:visited {color:black;}

#page-content {
    /* min-width here is useless until min-width in frame.css/#frametop is gretaer enought to hold this #page-content min-width */
    /* #page-content min-width is inherited by parent themes */
    /* #page-content min-width = 0 frees me from possible related problems */
    min-width:0;
}

/* navbutton */
.navbutton {padding-right:0.5em;}
.navbutton table td {padding:0;}

/* breadcrumb */
.breadcrumb {margin-left:0.8em;}

/* generalbox */
.generalbox {border-color:#E3DFD4;padding:1em;}

/* generalbox */
#page-admin-setting-manageauths .generalbox {border:none;}

/* generalbox */
#page-enrol-instances .generalbox {border:none;}
#page-enrol-instances .select.menujump {margin-left:0.5em;}

/* environmenttable */
.environmenttable .error {background-color:red;}
.environmenttable .warn {background-color:yellow;}
.environmenttable .ok {background-color:lime;}

/* adminsettings */
#adminsettings .form-overridden {background-color:yellow;}
#adminsettings .form-warning {color:red;}

/* tables */
.editcourse th,
.editcourse td,
.generaltable th,
.generaltable td,
#page-admin-course-manage .generalbox th,
#page-admin-course-manage .generalbox td,
#attempts th,
#attempts td,
.plugincompattable th,
.plugincompattable td,
.environmenttable th,
.environmenttable td,
.forumheaderlist td,
.forumheaderlist th {
    border: 1px solid #E3DFD4;
    border-collapse: collapse;
}

/* Filter table - MDL-32869 */
.path-admin .cell .singleselect {
    margin:0;
}

th.header,
.formtable tbody th,
.generalbox th,
.generaltable th.header {background-image:url([[pix:theme|trend/__setting_trendcolor__/gradient_h]]);background-color:[[setting:blockheaderbackground]];background-repeat:repeat-x;border-top:1px solid #C6BDA8;}
#modules, #compatibleblockstable {margin-left:auto; margin-right:auto;}
table.flexible .r0, table.generaltable .r0 {background-color: #F0F0F0;}
table.flexible .r1, table.generaltable .r1 {background-color: #FAFAFA;}

/* admin pages */
div#chooseuser {border:0 transparent none;}
table.groupmanagementtable,
table.groupmanagementtable tr,
table.groupmanagementtable td {border-width:0px;}
table.groupmanagementtable td#buttonscell {vertical-align:middle;text-align:center;}
table#defineroletable tr.rolecapheading {background-image:url([[pix:theme|trend/__setting_trendcolor__/gradient_h]]);background-color:[[setting:blockheaderbackground]];background-repeat:repeat-x;}
/*table#defineroletable tr.rolecap {border-top:1px dashed #F30;}*/
tr.rolecap {border-top:1px dashed #F30;}
tr.rolecapheading + tr.rolecap {border-top:none;}

/* course categories */
#page-admin-course-manage .editcourse td div.singleselect {text-align:left;}

/* course */
/* ul.topics .section span.commands {float:right;} /* distanza dei comandi dagli elementi del corso */
ul.topics .section span.commands {position:absolute;right:1em;}

.mform fieldset {border:1px solid #DDD;}
.mform .fitem .fitemtitle {width:25%;}
.mform .fitem .fitemtitle label {padding-right:5px;}
.mform .fitem .felement {margin-left:26%;width:73%;min-height: 0.8em;}
/*.mform .fitem fieldset.felement {padding-left:0}*/
.mform .fitem .fitemtitle .helplink img {margin-right:-5px;}
.mform .fsubmit {text-align:left}
table td.cell p {margin:0;}

/* pagelayout-report */
.pagelayout-report #page-header {float:left;}
.pagelayout-report #page-content {overflow:hidden;}

/* notice */
#notice div.buttons {margin-bottom:0;}

/* page-footer */
#page-footer {text-align:center;width:100%;padding:0;}
.noframefooter {background-color:#FFF;clear: both;float: left;width:100%;}
#page-footer-content {text-align:center;border:7px double #E3DFD4;margin:0;padding:0.5em;}
#page-footer .logininfo {padding:0.3em 0 0.7em 0;}
#page-footer .moodledocs {text-align:center;padding:0.7em 0 0.8em 0;}

/* pre, code, tt */
pre, code, tt {
    font: 1em/1.3 monospace;
}

/* colors in XMLDB editor section are important */
#listdirectories,
#listtables,
#listfields {
    color:grey;
}

#listdirectories tr.r0,
#listtables tr.r0,
#listfields tr.r0 {
    background: none repeat scroll 0 0 #F0F0F0;
}

#listdirectories tr.r1,
#listtables tr.r1,
#listfields tr.r1 {
    background: none repeat scroll 0 0 #FAFAFA;
}

#listdirectories .highlight,
#listtables .highlight
#listfields .highlight {
    background: none repeat scroll 0 0 [[setting:lblockcolumnbgc]];
}

.notifytiny {
    font-size: 1em;
}

/* MDL-29403 */
.capdefault {
    background-image:url([[pix:theme|trend/__setting_trendcolor__/gradient_h]]);
    background-color:[[setting:blockheaderbackground]];
    background-repeat:repeat-x;
}
table#defineroletable th {border-top:none;}

form.loginform .rememberusername {
    padding-left:13px;
    width: auto;
}

form.loginform #rememberusername {
    margin-right:0;
}

/* RSS - MDL-28561 */
.block_rss_client .list li {
    border-top-color: #DDD;
}

/* Upcoming events - MDL-29367 */
/* to have the same separator as in .block_rss_client .list li */
.block_calendar_upcoming .content > hr {
    display:none;
}

.block_calendar_upcoming .event {
    border-bottom: 1px solid #DDDDDD;
    padding: 5px;
}

/** Custom CSS **/
[[setting:customcss]]
